package com.ywu.app.manage.spi.spi;

import com.ywu.app.manage.spi.dto.YwuAppDto;
import com.ywu.app.manage.spi.dto.YwuAppUserDto;
import com.ywu.app.manage.spi.entity.YwuAppEntity;
import com.ywu.common.result.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "YWU-APP-MANAGE")
public interface YwuAppSpi {
    @PostMapping("/ywu/app/app.user.query.by.user.spi")
    CommonResult<List<YwuAppEntity>> queryAppInfoByUser(@RequestBody YwuAppUserDto ywuAppUserDto);

    @PostMapping("/ywu/app/app.user.query.by.app.id")
    CommonResult<List<YwuAppEntity>> queryAppInfoByAppId(@RequestBody List<YwuAppUserDto> ywuAppUserDtoList);

    @PostMapping("/ywu/app/app.token.check.info.for.spi")
    CommonResult<Object> checkAppToken(@RequestBody YwuAppDto dto);

    @PostMapping("/ywu/app/user/app.user.delete.info.by.user.id.for.spi")
    CommonResult<Object> appUserDeleteInfoByUserId(@RequestBody YwuAppUserDto ywuAppUserDto);
}
